import request from '../utils/request.js'


export function loginFun(params) {
	return new Promise((resolve, reject) => {
		request.post("/ipad/login/doLogin", params).then((result) => {
			resolve(result);
		}).catch((error) => {
			reject(error);
		});
	});
}

export function loginOut(userId) {
	return new Promise((resolve, reject) => {
		request.post(`/ipad/login/logoutByUserId/${userId}`,{userId:userId} ).then((result) => {
			resolve(result);
		}).catch((error) => {
			reject(error);
		});
	});
}